
package com.yuhanginfo.modules.sys.service;



import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;
import com.yuhanginfo.common.persistence.Page;
import com.yuhanginfo.common.service.CrudService;
import com.yuhanginfo.modules.sys.entity.Goods;
import com.yuhanginfo.modules.sys.entity.User;
import com.yuhanginfo.modules.sys.dao.GoodsDao;

/**
 * 门店商品信息管理Service
 * 
 * @author yinhao
 * @version 2017-10-9
 */
@Service
@Transactional(readOnly = true)
public class GoodsStoreExamineService extends CrudService<GoodsDao, Goods> {

	@Autowired
	GoodsDao goodsDao;
	
	

	public Page<Goods> findPage(Page<Goods> page, Goods goods) {
		goods.setPage(page);
		return page.setList(goodsDao.findExamineList(goods));
	}

	@Transactional(readOnly = false,propagation = Propagation.REQUIRED, rollbackFor = Exception.class)
	public void save(User user ,Goods goods) {
		
			super.save(goods);
		
	}

}